<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let str1 = "sdsdshj456jfdsopfdwe";
        let str2 = "sdsdshj456jfdsopfdwe";
        //'sdsdshj123jfdsopfdwe'
        //'sdsdshj"4""5""6"jfdsopfdwe'
        // let reg1 = /[a-z]*([0-9]{3})[a-z]*/;
        // let res1 = str1.replace(/[0-9]{1}/, `"${RegExp.$1}"`);
        let res1 = str1.replace(/s{1}/g, (res) => {
            // console.log(res);
            console.log(res,'111')
            return `"${res}"`;
            // console.log(RegExp.$1);
        });
        console.log(res1,'res1')
        // let res2 = str2.replace(/\w*([0-9]{1})\w*/, (text) => {
        //     console.log("000", text);
        // let flag1 = reg1.test(str1);  
        // console.log(flag1);
          
        // });
        // console.log(str2.match(/\w*([0-9]{1})\w*/));
        // console.log("res1", res1);
    </script> 
</body>
</html>